﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace Lilium.Logging
{
	public class Logger
	{
		public Logger()
		{
			m_LogListeners = new[] { new TraceLogListener() };
		}

		public void Write(LogEntry logEntry)
		{
			foreach (var listener in LogListeners)
			{
				listener.Write(logEntry);
			}
		}

		#region private ILogListener[] LogListeners

		private readonly ILogListener[] m_LogListeners;

		private ILogListener[] LogListeners
		{
			[DebuggerNonUserCodeAttribute]
			get
			{
				return m_LogListeners;
			}
		}

		#endregion
	}
}
